package com.xin.feigin;

import com.xin.domain.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 使用@FeignClient("p03-provider-01")注解绑定p03-provider-01服务，还可以使用url参数指定一个URL。
 * @author eacdy
 */
@FeignClient(name = "p03-provider-01")
public interface UserFeignClient {
  @RequestMapping("/{id}")
  public User findByIdFeign(@RequestParam("id") Long id);
}
